<extend name="Base/common"/>

<block name="head"></block>

<block name="body">
    <script type="text/javascript">
        var iurl = "{:U('Home/List/detaillist','','')}";
    </script>
    <div class="top" id="home">
        <div class='sit-header '>
            <div class="container">
                <div class="logo"><a href="{:U('Home/Index/index','','')}"><img src="__ROOT__{:get_cover($logo['image'],$field = path)}" /></a></div>
                <!--- start-nav---->
                <div class="nav_ba visible-lg visible-md" id="menu-wrapper">
                    <ul class="nav_li nav">
                        <li <php> echo $cate=='85'?"class='active'":""</php>><a href="{:U('Home/List/list2',array('cate'=>85),'')}">{$menu[1]['title']}</a></li>
                        <li ><a href="{:U('Home/List/index',array('cate'=>66),'')}">{$menu[2]['title']}</a></li>
                        <li <php>echo $cate=='68'?"class='active'":""</php>><a href="{:U('Home/List/list_activity',array('cate'=>68),'')}">{$menu[3]['title']}</a></li>
                        <li <php>echo $cate=='70'?"class='active'":""</php>><a href="{:U('Home/List/list2',array('cate'=>70),'')}">{$menu[4]['title']}</a></li>
                        <li <php>echo $cate=='83'?"class='active'":""</php>><a href="{:U('Home/List/list2',array('cate'=>83),'')}">{$menu[5]['title']}</a></li>
                        <li <php>echo $cates=='84'?"class='active'":""</php>><a href="{:U('Home/Index/index',array('cate'=>84),'')}#about">{$menu[6]['title']}</a></li>
                        <li <php>echo $cates=='40'?"class='active'":""</php>><a href="{:U('Home/Index/index',array('cate'=>40),'')}#customer">{$menu[7]['title']}</a></li>
                    </ul>
                </div>
                <button class="toggle-menu visible-sm visible-xs"><i class="fa fa-bars"></i></button>
                <!--- //end-nav-->
            </div>
        </div>
    </div>

    <nav class="sMenu" >
        <h3><i class="fa fa-angle-left"></i> 菜單</h3>
        <ul>
            <li <php> echo $cate=='85'?"class='active'":""</php>><a href="{:U('Home/List/list2',array('cate'=>85),'')}">{$menu[1]['title']}</a></li>
            <li><a href="{:U('Home/List/index',array('cate'=>66),'')}">{$menu[2]['title']}</a></li>
            <li <php> echo $cate=='68'?"class='active'":""</php>><a href="{:U('Home/List/list_activity',array('cate'=>68),'')}" >{$menu[3]['title']}</a></li>
            <li <php> echo $cate=='70'?"class='active'":""</php>><a href="{:U('Home/List/list2',array('cate'=>70),'')}">{$menu[4]['title']}</a></li>
            <li <php> echo $cate=='83'?"class='active'":""</php>><a href="{:U('Home/List/list2',array('cate'=>83),'')}">{$menu[5]['title']}</a></li>
            <li <php>echo $cates=='84'?"class='active'":""</php>><a href="{:U('Home/Index/index',array('cate'=>84),'')}#about">{$menu[6]['title']}</a></li>
            <li <php>echo $cates=='40'?"class='active'":""</php>><a href="{:U('Home/Index/index',array('cate'=>40),'')}#customer">{$menu[7]['title']}</a></li>
        </ul>
    </nav>
    <div class="container artist">
        <div class="page_info">
            <h3>{$detail['title']}</h3>
            <div class="jiathis_style_24x24">
                <span>分享到：</span>
                <a class="jiathis_button_weixin"></a>
                <a class="jiathis_button_fb"></a>
            </div>
            <if condition="$detail['model_id']=='6'">
                <div class="col-md-6 void_img m-t-lg m-b-lg center-block">
                    <div class="pos_rlt gallery clearfix">
                        <a href="{$detail['video']}" rel="prettyPhoto" title="YouTube demo">
                            <img src="__ROOT__{:get_cover($detail['cover_id'],$field = path)}" alt=""/>
                            <div class="portfolio-overlay void_ico">
                                <i class="fa fa-play-circle"></i>
                            </div>
                        </a>
                    </div>
                    
                </div>
                <div class="artist_bottom_img gallery">
                        <p>{$detail['content']}</p>                       
                        <if condition="is_array($detail['photo'])">
                            <volist name='detail["photo"]' id="images">
                                <div class="col-md-4 col-xs-6">
                                    <a href="__ROOT__{:get_cover($images,$field = path)}" class=" div_con" rel="prettyPhoto[gallery1]"><img src="__ROOT__{:get_cover($images,$field = path)}" alt="" class="blur"/></a>
                                </div>
                            </volist>
                        <elseif condition="$detail['photo']!=''"/>
                            <div class="col-md-4 col-xs-6">
                                <a href="__ROOT__{:get_cover($detail['photo'],$field = path)}" class="div_con" rel="prettyPhoto[gallery1]"><img src="__ROOT__{:get_cover($detail['photo'],$field = path)}" alt="" class="blur"/></a>
                            </div>
                        </if>   
                        
                    </div> 
                <else/>
                <div class="artist_bottom_img gallery">
                    <p>{$detail['content']}</p>
                    <if condition="is_array($detail['photo'])">
                        <volist name='detail["photo"]' id="images">
                            <div class="col-md-4 col-xs-6">
                                <a href="__ROOT__{:get_cover($images,$field = path)}" class=" div_con" rel="prettyPhoto[gallery1]"><img src="__ROOT__{:get_cover($images,$field = path)}" alt="" class="blur"/></a>
                            </div>
                        </volist>
                        <else/>
                        <div class="col-md-4 col-xs-6">
                            <a href="__ROOT__{:get_cover($detail['photo'],$field = path)}" class="div_con" rel="prettyPhoto[gallery1]"><img src="__ROOT__{:get_cover($detail['photo'],$field = path)}" alt="" class="blur"/></a>
                        </div>
                    </if>   
                </div>                
            </if>


        </div>

        <div class="clearfix"></div>
        <if condition="$cate=='68'">
            <div class="back "><a href= "{:U('Home/List/list_activity',array('cate'=>$cate),'')}">返　回</a></div>
            <else/>
            <div class="back "><a href= "{:U('Home/List/list2',array('cate'=>$cate),'')}">返　回</a></div>
        </if>

    </div>
    <block name='footer'></block>
</block>